package cn.ctodb.divination.action;

import cn.ctodb.divination.NameGlobal;
import cn.ctodb.divination.service.BaseService;
import cn.ctodb.divination.service.HzwxService;
import cn.ctodb.divination.service.WuGeService;
import cn.ctodb.divination.service.dto.WuGe;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.inject.Inject;

/**
 * Created by cc on 2017/2/5.
 */
@Controller
public class IndexAction {


    @RequestMapping("/")
    public String sm(ModelMap modelMap) {
        modelMap.put("names", NameGlobal.getNames());
        return "index";
    }

}
